package vip.rssc.jdbc.service.impl;

import vip.rssc.jdbc.entity.TestUser;
import vip.rssc.jdbc.mapper.TestUserMapper;
import vip.rssc.jdbc.service.TestUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Description: [TestUserServiceImpl]</p >
 * Created on 2020年10月25日
 *
 * @author <a href="1014376159@qq.com">CJ</a>
 * @version 1.0
 * Copyright (c) 2020 cj
 */
@Service
public class TestUserServiceImpl implements TestUserService {

    @Autowired
    private TestUserMapper testUserMapper;

    @Override
    public void save(TestUser testUser) {
        testUserMapper.save(testUser);
    }

    @Override
    public void updateById(TestUser testUser) {
        testUserMapper.updateById(testUser);
    }

    @Override
    public void deleteById(Long id) {
        testUserMapper.deleteById(id);
    }

    @Override
    public TestUser selectById(Long id) {
        return testUserMapper.selectById(id);
    }

    @Override
    public List<TestUser> selectList() {
        return testUserMapper.selectList();
    }
}
